using Microsoft.EntityFrameworkCore;
using System.Reflection;
using TraceBility.Host.Write;
using TraceBility.Host.Write.Extension;
using TraceBility.Interstructrue;

var builder = WebApplication.CreateBuilder(args).Inject();


var app = builder.Build();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
    app.UseSwagger();
    app.UseSwaggerUI();
}
app.UseCors(x=>x.AllowAnyHeader().AllowAnyOrigin().AllowAnyMethod());
app.UseAuthorization();

app.MapControllers();

app.Run();
